package com._21cn.product.web.validator;

import com._21cn.product.entity.CarPicture;
import com._21cn.framework.utils.StringUtil;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("carPictureValidator")
public class CarPictureValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return CarPicture.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        CarPicture obj = (CarPicture)target;
        //TODO
    }
}